package com.zx.jhpt.po;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * Replymessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "REPLYMESSAGE")
public class Replymessage implements java.io.Serializable {

	// Fields

	private String id;
	private String deptid;
	private String deptname;
	private Date hcsj;
	private String fxwt;
	private String gdwfzr;
	private String gdwzgld;
	private Date fksj;
	private String sftghzd;
	private String gdwfkjg;
	private Date yjzgwcsj;
	private String qtbz;
	private String fxid;
    private Integer status;
	private List<Enclosure> enclosures;
	// Constructors

	/** default constructor */
	public Replymessage() {
	}

	/** minimal constructor */
	public Replymessage(String id) {
		this.id = id;
	}

	/** full constructor */
	public Replymessage(String id, String deptid, String deptname, Date hcsj,
			String fxwt, String gdwfzr, String gdwzgld, Date fksj,
			String sftghzd, String gdwfkjg, Date yjzgwcsj, String qtbz,
			String fxid) {
		this.id = id;
		this.deptid = deptid;
		this.deptname = deptname;
		this.hcsj = hcsj;
		this.fxwt = fxwt;
		this.gdwfzr = gdwfzr;
		this.gdwzgld = gdwzgld;
		this.fksj = fksj;
		this.sftghzd = sftghzd;
		this.gdwfkjg = gdwfkjg;
		this.yjzgwcsj = yjzgwcsj;
		this.qtbz = qtbz;
		this.fxid = fxid;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "DEPTID", length = 64)
	public String getDeptid() {
		return this.deptid;
	}

	public void setDeptid(String deptid) {
		this.deptid = deptid;
	}

	@Column(name = "DEPTNAME", length = 64)
	public String getDeptname() {
		return this.deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "HCSJ")
	public Date getHcsj() {
		return this.hcsj;
	}

	public void setHcsj(Date hcsj) {
		this.hcsj = hcsj;
	}

	@Column(name = "FXWT", length = 200)
	public String getFxwt() {
		return this.fxwt;
	}

	public void setFxwt(String fxwt) {
		this.fxwt = fxwt;
	}

	@Column(name = "GDWFZR", length = 64)
	public String getGdwfzr() {
		return this.gdwfzr;
	}

	public void setGdwfzr(String gdwfzr) {
		this.gdwfzr = gdwfzr;
	}

	@Column(name = "GDWZGLD", length = 64)
	public String getGdwzgld() {
		return this.gdwzgld;
	}

	public void setGdwzgld(String gdwzgld) {
		this.gdwzgld = gdwzgld;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FKSJ")
	public Date getFksj() {
		return this.fksj;
	}

	public void setFksj(Date fksj) {
		this.fksj = fksj;
	}

	@Column(name = "SFTGHZD", length = 64)
	public String getSftghzd() {
		return this.sftghzd;
	}

	public void setSftghzd(String sftghzd) {
		this.sftghzd = sftghzd;
	}

	@Column(name = "GDWFKJG", length = 200)
	public String getGdwfkjg() {
		return this.gdwfkjg;
	}

	public void setGdwfkjg(String gdwfkjg) {
		this.gdwfkjg = gdwfkjg;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "YJZGWCSJ")
	public Date getYjzgwcsj() {
		return this.yjzgwcsj;
	}

	public void setYjzgwcsj(Date yjzgwcsj) {
		this.yjzgwcsj = yjzgwcsj;
	}

	@Column(name = "QTBZ", length = 200)
	public String getQtbz() {
		return this.qtbz;
	}

	public void setQtbz(String qtbz) {
		this.qtbz = qtbz;
	}

	@Column(name = "FXID", length = 64)
	public String getFxid() {
		return this.fxid;
	}

	public void setFxid(String fxid) {
		this.fxid = fxid;
	}

    @Column(name = "STATUS", nullable = false, precision = 1, scale = 0)
    public Integer getStatus(){
        return status;
    }
    public void setStatus(Integer status){
        this.status = status;
    }

    @Transient
    public List<Enclosure> getEnclosures() {
        return enclosures;
    }

    public void setEnclosures(List<Enclosure> enclosures) {
        this.enclosures = enclosures;
    }
}